<template>
    <input class="inputMenu" :type="typeInput" :placeholder="placeholderInput" :value="modelValue" @input="updateInput"/>
</template>

<script>
export default {
    name: 'MyInput',
    props: {
        modelValue: [String, Number],
        typeInput: String,
        placeholderInput: String
    },
    methods: {
        updateInput(event) {
            this.$emit('update:modelValue', event.target.value);
        }
    }
}
</script>

<style  scoped>
.inputMenu {
    height: 50px;
    width: 75%;
    margin-bottom: 3%;
    border-radius: 12px;
    border: 1px solid black;
    outline: none;
    padding: 0 16px;
    font-family: 'Roboto', sans-serif;
    color: var(--tg-theme-hint-color);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

::placeholder {
  color: var(--tg-theme-hint-color);
}
</style>